home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # Make a 64-bit IRIX 6.x DSO
-
- # $Id: mklib.irix6-64,v 1.1 1996/09/26 22:39:31 brianp Exp $
-
- # $Log: mklib.irix6-64,v $
- # Revision 1.1 1996/09/26 22:39:31 brianp
- # Initial revision
- #
-
-
- # First argument is name of output library
- # Rest of arguments are object files
-
- LIBRARY=$1
-
- shift 1
- OBJECTS=$*
-
-
- # This is a bit of a kludge, but...
- if test ${LIBRARY} = "libMesaGL.so" ; then
- # must add libXext.a to MesaGL.so in case one relinks a precompiled
- # OpenGL program which wasn't linked with -lXext.
- OBJECTS="${OBJECTS} -lXext"
- fi
-
-
- ld -64 -shared -all -o ${LIBRARY} ${OBJECTS}
-
-
- # You may want to add the following to the ld line:
- # -soname <path>$LIBNAME
- #
- # where LIBNAME=`basename $LIBRARY` and <path> is where you're going to
- # put Mesa's libraries. This may solve problems with the runtime
- # loader/linker (rld) not being able to find the library.
- # For example: -soname /usr/local/lib/$LIBNAME
-